using System;
using System.Runtime.Serialization;

namespace Invoicing.Model.Accounts
{
    public class RoleModel:MBase
    {
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public int ID { get; set; }
        [DataMember]
        [Model]
        public string RoleName { get; set; }
        [DataMember]
        [Model]
        public string Description { get; set; }

        #region Help
        public virtual UserCollection Users { get; set; }
        #endregion
    }

    [DataContract]
    public class RoleCollection : ModelCollectionBase<RoleModel> { }
}
